/*
 * LoadResource.java
 *
 * Created on 16 de julio de 2006, 0:12
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package resource;

import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;

/**
 *
 * @author Administrador
 */
public class LoadResource {
    
    private static LoadResource lr=new LoadResource();
    public static LoadResource getDefault(){
        return lr;
    }
    
    public Image getCampo() throws Exception{
        URL url=getClass().getResource("Campo.jpg");
        return Toolkit.getDefaultToolkit().getImage(url);
    }
    
    public Image getIcono() throws Exception{
        URL url=getClass().getResource("Icono.gif");
        return Toolkit.getDefaultToolkit().getImage(url);
    }

}
